<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>首页</title>
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
	<link href="./css/mui.css" rel="stylesheet"/>
	<link href="./css/mui.min.css" rel="stylesheet"/>
	<link href="./css/mui-icons-extra.css" rel="stylesheet"/>
	<link href="./css/app.css" rel="stylesheet"/>
	<style type="text/css">
	</style>
</head>
<body>
	<!-- 头部HEADER -->
	<header class="app-header">
		<b>最新</b>
		&nbsp; &nbsp; 
		<span onclick="jumpToIndexHistory()">足迹</span>
	</header>
	<!-- 头部HEADER -->
	
	<!-- 首页视频布局 -->
	<div class="app-video-bg" id="refresh">
		<div class="app-video" id="vd">
			<video poster="" src="/storage/emulated/0/Android/data/io.dcloud.HBuilder/downloads/002.mp4" type="video/mp4" name="media" controls="controls" autoplay="autoplay" loop id="video-1" class="app-video-tag"></video>
		</div>
		<!-- <textarea id="vtmp" style="width:100%;"></textarea> -->
		<button type="button" onclick="clearFiles('001.mp4')">文件清理</button>
		<button type="button" onclick="plus.webview.open('https://m.gifshow.com/fw/photo/3xf8z2qepjg467e')">火线妹</button>
		<!-- <br><br> -->
	</div>
	<!-- 首页视频布局 -->
	
	<!-- 底部菜单 -->
	<nav class="mui-bar mui-bar-tab">
		<a class="mui-tab-item mui-active" onclick="jumpToIndex()">
			<span class="mui-icon mui-icon-home"></span>
			<span class="mui-tab-label">首页</span>
		</a>
		<a class="mui-tab-item" onclick="jumpToMarket()">
			<span class="mui-icon mui-icon-download"></span>
			<span class="mui-tab-label">库</span>
		</a>
<!-- 		<a class="mui-tab-item" onclick="jumpToChat()">
			<span class="mui-icon mui-icon-chatbubble"></span>
			<span class="mui-tab-label">消息</span>
		</a> -->
		<a class="mui-tab-item" onclick="jumpToMy()">
			<span class="mui-icon mui-icon-contact"></span>
			<span class="mui-tab-label">我的</span>
		</a>
	</nav>
	<!-- 底部菜单 -->
</body>
</html>


<script src="./js/mui.js"></script>
<script src="./js/mui.min.js"></script>
<script src="./js/app.js"></script>
<script src="./js/videoIndex.js"></script>
<script type="text/javascript">
	// 初始化
	mui.init({
		//下拉、上拉刷新
        pullRefresh: {
            container: "#refresh",
            down: { //下拉刷新
				style: "circle",
				height: 50,
				auto: true,
                contentrefresh: "视频正在加载...",
                contentnomore: '没有更多视频了',
                callback: async function () { 
					var sys = getSys();
					if (sys.day==0 || sys.appAccess=='') { //判断系统参数
						var sysNew = setSys(); //参数更新
						setTimeout(function(){
							jumpToIndex();
						}, 1000);
					} 
					getIndex();
					mui('#refresh').pullRefresh().endPulldownToRefresh();
                }
            },
            up: { //上拉加载
                height: 50, 
                auto: false, 
                contentrefresh: "更多视频正在加载...", 
                contentnomore: '没有更多数据了', 
                callback: async function () { 
					getIndex();
                }
            }
        }
    });
</script>